﻿using System.ComponentModel;
using System.Data;
using System.Windows;
namespace WPFExcelReport.Chart
{
    /// <summary>
    /// Interaction logic for ChartEx.xaml
    /// </summary>
    public partial class ChartEx0004 : ChartExBase
    { 
        public ChartEx0004()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            vm = new ChartExViewModel();
            this.DataContext = vm;
            InitializeComponent(); 
            vm.IsChart00 = true;
            vm.IsChart01 = false;
            vm.IsChart02 = false;
            vm.IsChart03 = false;
            vm.IsChart04 = false;
            vm.IsChart05 = false;
            vm.IsChart06 = false;
            vm.IsChart07 = false;
            vm.IsChart08 = false;
            vm.IsChart09 = false;
            vm.DefaultTitle = "销售额分析";
            vm.DefaultSubTitle = "金额";
            vm.DefaultConvert = 0.001;
        }
        public override void ChartEx_Loaded(object sender, RoutedEventArgs e)
        {          
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            if (IsLoaded)
                return;
            base.ChartEx_Loaded(sender, e);
           
        }
        public override void SetUp(int iData, string name, DataTable tb, string X, string Y)
        { 
            base.SetUp(iData,name, tb, X, Y);
        } 
    }
}
